package com.brtbeacon.demo.lot.speech;

import android.content.Context;

/**
 * 演示适配原有APP里的语音合成引擎
 */

public class SpeechEngineLegacy extends SpeechEngine{

    private Context context;

    public SpeechEngineLegacy(Context context) {
        this.context = context;
        BaiduSoundUtil.init(context);
    }

    @Override
    public void speak(String content) {
        BaiduSoundUtil.speak(content);
    }

    @Override
    public void stop() {
        BaiduSoundUtil.stop();
    }

    @Override
    public void close() {
        BaiduSoundUtil.stop();
    }

    @Override
    public String getName() {
        return "LegacyTTS";
    }
}
